/*
 * FileServer.hpp
 *
 *  Created on: 30.03.2011
 *      Author: niea
 */

#ifndef FILESERVER_HPP_
#define FILESERVER_HPP_

#include "../common/log.hpp"
#include "../common/Utils.hpp"

#include "FileServerI.hpp"
namespace efs
{

class FileServer : FileServerI
{
public:
	FileServer(std::string const& root_path, int file_port);
	virtual ~FileServer();
	bool start();
	void stop();

private:
	pthread_t m_thread;
	static void * threadProcStarter(void *base_class_pointer);
	void threadProc();
};

}

#endif /* FILESERVER_HPP_ */
